﻿<UserControl x:Class="FM.矩阵.控制.Views.菜单"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:viewModels="clr-namespace:FM.矩阵.控制.ViewModels"
             d:DataContext="{d:DesignInstance Type=viewModels:菜单ViewModel}"
             d:DesignHeight="100"
             d:DesignWidth="600"
             mc:Ignorable="d">

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/FM.矩阵.控制;component/Themes/Generic.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>

    <Grid>
        <Menu HorizontalAlignment="Stretch"
              VerticalAlignment="Top"
              FontSize="20">
            <MenuItem Command="{Binding 控制视图Command}" Header="控制视图" />
            <MenuItem Command="{Binding 状态查询Command}" Header="状态查询" />

            <MenuItem Header="任务">
                <MenuItem Command="{Binding 定时任务编辑Command}" Header="定时任务管理" />
                <MenuItem Command="{Binding 快捷任务编辑Command}" Header="快捷任务管理" />
                <MenuItem Command="{Binding 任务单编辑Command}" Header="任务单管理" />

            </MenuItem>

            <MenuItem Header="监听">
                <MenuItem Command="{Binding 启动监听Command}" Header="启动监听" />
                <MenuItem Command="{Binding 关闭监听Command}" Header="关闭监听" />
                <MenuItem Command="{Binding 设置监听Command}" Header="设置监听" />
            </MenuItem>

            <MenuItem Header="通道">
                <MenuItem Command="{Binding 通道管理Command}" Header="通道管理" />
                <MenuItem Command="{Binding 指令管理Command}" Header="指令管理" />
                <MenuItem Command="{Binding 协议管理Command}" Header="协议管理" />

            </MenuItem>
            <MenuItem Header="系统">
                <MenuItem Command="{Binding 系统设置Command}" Header="系统设置" />
                <MenuItem Command="{Binding 保存布局Command}" Header="保存布局" />
                <MenuItem Command="{Binding 查看日志Command}" Header="查看日志" />
                <MenuItem Command="{Binding 点击关于Command}" Header="关于" />
            </MenuItem>

            <MenuItem Command="{Binding 退出Command}" Header="退出" />
        </Menu>
    </Grid>
</UserControl>
